<layout name="layout"/>
    <load href="__PUBLIC__/{:ECHART}/build/dist/echarts.js"/>
    <!-- ECharts单文件引入 -->
    <script type="text/javascript">
        require.config({
            paths: {
                echarts: '__PUBLIC__/{:ECHART}/build/dist'
            }
        });
        require(
            [
                'echarts',
                'echarts/chart/line',   // 按需加载所需图表，如需动态类型切换功能，别忘了同时加载相应图表
                'echarts/chart/bar'
            ],
            function (ec) {
                var myChart = ec.init(document.getElementById('main'));
				option = {
				title : {
					text: '未来一周气温变化',
					subtext: '纯属虚构'
				},
				tooltip : {
					trigger: 'axis'
				},
				legend: {
					data:['最高气温','最低气温']
				},
				toolbox: {
					show : true,
					feature : {
						mark : {show: true},
						dataView : {show: true, readOnly: false},
						magicType : {show: true, type: ['line', 'bar']},
						restore : {show: true},
						//saveAsImage : {show: true}
					}
				},
				calculable : true,
				xAxis : [
					{
						type : 'category',
						boundaryGap : false,
						data : ['周一','周二','周三','周四','周五','周六','周日']
					}
				],
				yAxis : [
					{
						type : 'value',
						axisLabel : {
							formatter: '{value} °C'
						}
					}
				],
				series : [
					{
						name:'最高气温',
						type:'line',
						data:[11, 11, 15, 13, 12, 13, 10],
						markPoint : {
							data : [
								{type : 'max', name: '最大值'},
								{type : 'min', name: '最小值'}
							]
						},
						markLine : {
							data : [
								{type : 'average', name: '平均值'}
							]
						}
					},
					{
						name:'最低气温',
						type:'line',
						data:[1, -2, 2, 5, 3, 2, 0],
						markPoint : {
							data : [
								{name : '周最低', value : -2, xAxis: 1, yAxis: -1.5}
							]
						},
						markLine : {
							data : [
								{type : 'average', name : '平均值'}
							]
						}
					}
				]
			};
								
                myChart.setOption(option);
            }
        );
    </script>

    <div id="main" style="height:400px;"></div>
	
	
	
<div class="uk-alert">今日数据预览</div>
<hr>
<ul class="uk-grid uk-grid-width-1-2 uk-grid-width-medium-1-4 uk-text-left" data-uk-grid-margin>
     <li><div class="uk-panel uk-panel-box uk-panel-box">今日交易总数：{$total}</div></li>
	<li><div class="uk-panel uk-panel-box uk-panel-box">成功交易数：{$success_total}</div></li>	
    <li><div class="uk-panel uk-panel-box">失败交易数：{$declined_total}</div></li>
    <li><div class="uk-panel uk-panel-box">预授权交易：{$authorize_total}</div></li>
    <li><div class="uk-panel uk-panel-box">退款（含等待退款）数：{$refund_total}</div></li>
	<li><div class="uk-panel uk-panel-box">拒付数：{$cb_total}</div></li>
	<li><div class="uk-panel uk-panel-box">成功交易额：{$success_total_amount|number_format="2"}</div></li>
	<li><div class="uk-panel uk-panel-box">今日提现数：{$today_withdraw}</div></li>	
		<li><div class="uk-panel uk-panel-box">今日提现额：{$today_withdraw_amount|number_format="2"}</div></li>	
</ul>
<div class="uk-alert">平台其他基础数据</div> 
      
<ul class="uk-grid uk-grid-width-1-2 uk-grid-width-medium-1-4 uk-text-left" data-uk-grid-margin>
     <li><div class="uk-panel uk-panel-box uk-panel-box">商户总数：{$merchant}</div></li>
	<li><div class="uk-panel uk-panel-box uk-panel-box">网站总数：{$site}</div></li>	
    <li><div class="uk-panel uk-panel-box">提现总数：{$withdraw}</div></li>
    <li><div class="uk-panel uk-panel-box">交易总数：{$order}</div></li>
    <li><div class="uk-panel uk-panel-box">未处理提现数：{$pending_withdraw}</div></li>
	<li><div class="uk-panel uk-panel-box">代理商数：{$affiliate}</div></li>
	<li><div class="uk-panel uk-panel-box">货运公司总数：{$tracking}</div></li>
	<li><div class="uk-panel uk-panel-box">申请总数：{$application}</div></li>
	<li><div class="uk-panel uk-panel-box">未处理申请数：{$pending_application}</div></li>
	<li><div class="uk-panel uk-panel-box">代理商提现数：{$aff_withdraw}</div></li>
	<li><div class="uk-panel uk-panel-box">未处理代理商提现数：{$aff_pending_withdraw}</div></li>						
</ul>